const mongoose = require('mongoose');

const doctorSchema = new mongoose.Schema({
  name: { type: String, required: true },       // 医生姓名
  hospital: { type: String, required: true },   // 所属医院
  hospitalLevel: { type: String },              // 医院等级（三甲/二甲等）
  department: { type: String, required: true }, // 所属科室
  title: { type: String },                      // 医师职称
  price: { type: Number },                      // 挂号费
  tags: [{ type: String }],                     // 标签数组
  createdAt: { type: Date, default: Date.now }   // 创建时间
});

module.exports = mongoose.model('Doctor', doctorSchema);